package com.blog.blog.utils;

public class RedisKeyUtil {

    private static final String SPLIT = ":";

    private static final String PREFIX_TICKET = "ticket";

    private static final String PREFIX_USER = "user";

    public static String getTicketKey(String ticket) {
        return PREFIX_TICKET + SPLIT + ticket;
    }

    public static String getUserKey(Long userId) {
        return PREFIX_USER + SPLIT + userId;
    }

}
